import { request } from '@/api/_service'

// 查询umsPermission列表
export function LIST (data) {
  return request({
    url: '/umsPermission/list',
    method: 'get',
    params: data
  })
}

// 分页查询umsPermission列表
export function PAGE (data) {
  return request({
    url: '/umsPermission/page',
    method: 'get',
    params: data
  })
}

// 查询umsPermission
export function GET (data) {
  return request({
    url: '/umsPermission/' + data,
    method: 'get'
  })
}

// 新增umsPermission
export function ADD (data) {
  return request({
    url: '/umsPermission',
    method: 'post',
    data: data
  })
}

// 修改umsPermission
export function UPDATE (data) {
  return request({
    url: '/umsPermission',
    method: 'put',
    data: data
  })
}

// 删除umsPermission
export function DELETE (data) {
  return request({
    url: '/umsPermission/delete/' + data,
    method: 'delete'
  })
}

export default {
  LIST,
  PAGE,
  GET,
  ADD,
  UPDATE,
  DELETE
}
